<div class="container not-right" style="margin-bottom: 100px;">
	<div class="row">

<h1>Mis Pedidos</h1>

<% unless @orders.blank? %>
    <table>
        <tr>
          <td class="bold-text">N&uacute;mero</td>
          <td class="bold-text" style="padding-left: 10px;">Fecha</td>
          <td class="bold-text" style="padding-left: 10px;">Monto total</td>
          <td class="bold-text" style="padding-left: 10px;">Estado</td>
          <td></td>
          <td></td>
        </tr>
      <% @orders.each do |order| %>
        <tr>
            <td><%= show_order_id order.id %></td>
            <td style="padding-left: 10px;"><%= order.created_at.strftime("%d/%m/%Y") %></td>
            <td style="padding-left: 10px;">$<%= order.total_amount %></td>
            <td style="padding-left: 10px;"><%= show_status order.status %></td>
            <td style="padding-left: 10px;"><%= link_to "Ver detalle", clients_order_path(order.id) %></td>
        </tr>
      <% end %>
    </table>

                    <div id="product-pagination">
                        <%= will_paginate @orders, :previous_label => '<', :next_label => '>' %>
					</div>
<% else %>
    <span>No hay pedidos cargados.</span>
<% end %>

	</div>
</div>